package com.zzx.cursor.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzx.cursor.entity.Consumer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.cursor.Cursor;

import java.util.List;

@Mapper
public interface CursorMapper {

    @Select("select * from select_test")
    Cursor<Consumer> cursorTest(@Param("page") IPage<Consumer> page);

    @Select("select * from select_test")
    List<Consumer> normalTest(@Param("page") IPage<Consumer> page);

}
